summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-07-28 00:40:56 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-07-28 00:40:56 +0200
commitbb4e67615502af559c940e4bbbf93b00ed0e4bc1 (patch)
tree862edbd36faa79660ac6b2d777abeba4b039870b
parentMerge pull request #11128 from german77/discord (diff)
downloadyuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.tar
yuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.tar.gz
yuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.tar.bz2
yuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.tar.lz
yuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.tar.xz
yuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.tar.zst
yuzu-bb4e67615502af559c940e4bbbf93b00ed0e4bc1.zip
-rw-r--r--src/common/wall_clock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index dc0dcbd68..71e15ab4c 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -56,12 +56,12 @@ std::unique_ptr<WallClock> CreateOptimalClock() {
#ifdef ARCHITECTURE_x86_64
const auto& caps = GetCPUCaps();
- if (caps.invariant_tsc && caps.tsc_frequency >= WallClock::GPUTickFreq) {
+ if (caps.invariant_tsc && caps.tsc_frequency >= std::nano::den) {
return std::make_unique<X64::NativeClock>(caps.tsc_frequency);
} else {
// Fallback to StandardWallClock if the hardware TSC
// - Is not invariant
- // - Is not more precise than GPUTickFreq
+ // - Is not more precise than 1 GHz (1ns resolution)
return std::make_unique<StandardWallClock>();
}
#else